package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 产品属性值
 * 
 * @author yerly
 *
 */
@Entity
public class AttributeValue {
	@Id
	private Long id;
	@ManyToOne
	private Attribute attribute;
	private String value;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Attribute getAttribute() {
		return attribute;
	}

	public void setAttribute(Attribute attribute) {
		this.attribute = attribute;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "AttributeValue [id=" + id + ", attribute=" + attribute
				+ ", value=" + value + ", disabled=" + disabled + "]";
	}

}
